//
//  LDHadelItem.m
//  Gift
//
//  Created by 李迪 on 15/11/17.
//  Copyright © 2015年 dllo. All rights reserved.
//

#import "LDHadelItem.h"
#import "BaseHeader.h"


@interface LDHadelItem ()

@property (nonatomic, retain)UILabel *label;

@end

@implementation LDHadelItem

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        UIView *leftLine = [[UIView alloc]initWithFrame:CGRectMake(5, 20, SCREEN_WIDTH / 4, 1)];
        [leftLine setBackgroundColor:[UIColor grayColor]];
        [self addSubview:leftLine];
        UIView *rightLine = [[UIView alloc]initWithFrame:CGRectMake(SCREEN_WIDTH / 2, 20, SCREEN_WIDTH / 4, 1)];
        [rightLine setBackgroundColor:[UIColor grayColor]];
        [self addSubview:rightLine];
        self.label = [[UILabel alloc]initWithFrame:CGRectMake(SCREEN_WIDTH / 4 + 12, 0, SCREEN_WIDTH / 4, 40)];
        self.label.textColor = [UIColor grayColor];
        [self addSubview:self.label];
    }
    return self;
}

-(void)setStr:(NSString *)str
{
    self.label.text = str;
}





@end
